﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuickPasteItLib
{
    public interface IPasteBin
    {
        /// <summary>
        /// Submits the given text to the pastebin.
        /// </summary>
        /// <param name="paste">The text to be pasted.</param>
        /// <param name="lang">The language for syntax highlighting.</param>
        /// <param name="author">The author to appear on the paste (some pastebins require this).</param>
        /// <returns>The URL of the paste on success, an empty string on failure.</returns>
        string SubmitPaste(string paste, PasteLang lang = PasteLang.Plain, string author = "Anonymous");
    }

    /// <summary>
    /// Represents a programming language to be used for syntax highlighting.
    /// </summary>
    public enum PasteLang
    {
        Plain,
        CSharp,
        JavaScript,
        Cpp,
        C,
        Haskell,
        FSharp,
        HTML,
        XML,
        Python,
        Tcl,
        CoffeeScript,
        Batch,
        Bash,
        CSS,
        Java,
        PHP,
        SQL,
        Perl,
        Ruby,
        Tex,
        VB,
        Ini,
        YAML
    }
}
